사이트 내 전체검색
PHP
PHP 한줄팁
하우코드
https://cmd.kr/php/905 URL이 복사되었습니다.

본문

# 한글, UTF-8 감지
mb_detect_encoding($str, 'UTF-8');
mb_detect_encoding($str, 'EUC-KR');
mb_detect_encoding($str, 'EUC-KR,UTF-8');
mb_detect_encoding($str, 'auto'); // 자동 감지
mb_detect_encoding($str, array('EUC-KR','UTF-8'));

댓글목록

등록된 댓글이 없습니다.

PHP
871 (1/18P)

Search

Copyright © Cmd 명령어 3.147.66.149